package com.szqhyxj.youxiangju.biz.plan.create;

import android.content.Intent;

import com.szqhyxj.youxiangju.PromptView;
import com.szqhyxj.youxiangju.biz.plan.PlanModel;

public interface PlanCreateContract {
    String CARD_NAME = "CARD_NAME";
    String CARD_NO = "CARD_NO";
    String BILL_DATE = "BILL_DATE";
    String REPAY_DATE = "REPAY_DATE";
    String MERCHANT_AREA = "MERCHANT_AREA";
    String MAXAMOUNT = "maxamount";

    interface Presenter {

        void extractIntent(Intent intent);

        void calculatePlanLength(int progress);

        void init(int billDate, int repayDate, int ordinary, int exquisite, int highQuality);

        void createPlan(String amount);

        void setIdCard(String idCard);

        void setplanLength(int planLength);

        void setBtName(String btName);

        void responseChange(Integer amount, boolean selectOne, boolean selectTwo, boolean selectThree);
    }

    interface View extends PromptView {

        void showPlanLengthRange(int start, int end);

        void preview(String planId, PlanModel.PlanCreateEntity createEntity);

        void showCardNo(String cardNo);

        void showBillDate(int billDate);

        void showRepayDate(int repayDate);

        void showMerchantArea(String merchantArea);

        void showPlanLength(int planLength);

        void enable(int i);

        void disable(int i);

        void select(int i);

        void unSelect(int i);

        void disableCreateButton();

        void enableCreateButton();
    }

}